import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router);

export default new Router({
  routes: [
    /*
      前台路由
    */
    {
      path:'/courseAnswers',
      name:'courseAnswers',
      component: ()=>import('../components/coursePortal/CourseAnswers')
    },
    {
      path:'/courseIntroduction',
      name:'courseIntroduction',
      component: ()=>import('../view/coursePortal/CourseIntroduction')
    },
    {
      path:'/teachingTeam',
      name:'teachingTeam',
      component: ()=>import('../view/coursePortal/TeachingTeam')
    },
    {
      path:'/coursePortal',
      name:'coursePortal',
      component: ()=>import('../view/coursePortal/CoursePortal')
    },
    {
      path:'/courseConstruction',
      name:'courseConstruction',
      component: ()=>import('../components/coursePortal/CourseConstruction')
    },
    {
      path: '/portalFooter',
      name: 'portalFooter',
      component: () => import('../components/coursePortal/PortalFooter')
    },
    {
      path: '/articleManage',
      name: 'articleManage',
      component: () => import('../view/systemManage/articleManage/ArticleManage')
    },
    {
      path: '/homePage',
      name: 'homePage',
      component: () => import('../view/coursePortal/HomePage')
    },
    {
      path: '/portalHeader',
      name: 'portalHeader',
      component: () => import('../components/coursePortal/PortalHeader')
    },
    {
      path: '/portalNavigation',
      name: 'portalNavigation',
      component: () => import('../components/coursePortal/PortalNavigation')
    },
    {
      path: '/portalList',
      name: 'portalList',
      component: () => import('../components/coursePortal/PortalList')
    },

    /*
      后台系统路由
    */
    {
      path: '/articleManage',
      name: 'articleManage',
      component: ()=>import('../view/systemManage/articleManage/ArticleManage')
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../view/systemManage/Login')
    },
    {
      path: '/operatorList',
      name: 'operatorList',
      component: () => import('../view/systemManage/operator/OperatorList')
    }, {
      path: '/operator',
      name: 'operator',
      component: ()=>import('../view/systemManage/operator/Operator')
    },
    {
      path: '/displayArticle',
      name: 'displayArticle',
      component: ()=>import('../view/systemManage/articleManage/DisplayArticle')
    },
    {
      path: '/editArticle',
      name: 'editArticle',
      component: ()=>import('../view/systemManage/articleManage/EditArticle')
    },
    {
      path: '/articleAuditList',
      name: 'articleAuditList',
      component: ()=>import('../view/systemManage/articleAudit/ArticleAuditList')
    },
    {
      path: '/viewArticleAudit',
      name: 'viewArticleAudit',
      component: ()=>import('../view/systemManage/articleAudit/ViewArticleAudit')
    },
    {
      path: '/columnManage',
      name: 'columnManage',
      component: ()=>import('../view/systemManage/columnManage/ColumnManage')
    },
    {
      path: '/permissionList',
      name: 'permissionList',
      component: ()=>import('../view/systemManage/permission/PermissionList')
    },
    {
      path: '/articleManage',
      name: 'articleManage',
      component: ()=>import('../view/systemManage/articleManage/ArticleManage')
    },
    {
      path: '/addArticleFrom',
      name: 'addArticleFrom',
      component: ()=>import('../view/systemManage/articleManage/AddArticleFrom')
    },
    {
      path: '/systemManage',
      name: 'systemManage',
      component: () => import('../view/systemManage/SystemManage')
    }
  ]
})
